package com.party.mobile.web.dto.analyze.output;

import com.party.core.model.member.MemberMerchantCount;
import com.party.core.model.member.MemberMerchantCountWithMember;
import com.party.core.model.member.MemberMerchantDetailWithMember;
import org.springframework.beans.BeanUtils;

/**
 * Created by wei.li.
 *
 * @date 2017/12/14 0014
 * @time 15:52
 */
public class MerchantAnalyzeListOutput {

    //会员编号
    private String memberId;

    //机构名称
    private String name;

    //机构电话
    private String mobile;

    //机构报名数
    private Integer applyNum;

    //机构成功数
    private Integer successNum;

    //机构订单数
    private Integer orderNum;

    //机构资金
    private Double money;

    //机构浏览量
    private Long viewNum;

    //机构会员数
    private Integer memberNum;

    //机构实名会员
    private Integer realMemberNum;

    // 合作商类型, 0: 系统客户, 1: 大客户
    private Integer partnerType;

    public String getMemberId() {
        return memberId;
    }

    public void setMemberId(String memberId) {
        this.memberId = memberId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public Integer getApplyNum() {
        return applyNum;
    }

    public void setApplyNum(Integer applyNum) {
        this.applyNum = applyNum;
    }

    public Integer getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    public Double getMoney() {
        return money;
    }

    public void setMoney(Double money) {
        this.money = money;
    }

    public Long getViewNum() {
        return viewNum;
    }

    public void setViewNum(Long viewNum) {
        this.viewNum = viewNum;
    }

    public Integer getMemberNum() {
        return memberNum;
    }

    public void setMemberNum(Integer memberNum) {
        this.memberNum = memberNum;
    }

    public Integer getRealMemberNum() {
        return realMemberNum;
    }

    public void setRealMemberNum(Integer realMemberNum) {
        this.realMemberNum = realMemberNum;
    }


    public static MerchantAnalyzeListOutput transform(MemberMerchantDetailWithMember memberMerchantDetailWithMember){
        MerchantAnalyzeListOutput merchantAnalyzeListOutput = new MerchantAnalyzeListOutput();
        BeanUtils.copyProperties(memberMerchantDetailWithMember, merchantAnalyzeListOutput);
        return merchantAnalyzeListOutput;
    }

    public static MerchantAnalyzeListOutput transform(MemberMerchantCountWithMember memberMerchantCountWithMember){
        MerchantAnalyzeListOutput merchantAnalyzeListOutput = new MerchantAnalyzeListOutput();
        BeanUtils.copyProperties(memberMerchantCountWithMember, merchantAnalyzeListOutput);
        return merchantAnalyzeListOutput;
    }

    public Integer getPartnerType() {
        return partnerType;
    }

    public void setPartnerType(Integer partnerType) {
        this.partnerType = partnerType;
    }

    public Integer getSuccessNum() {
        return successNum;
    }

    public void setSuccessNum(Integer successNum) {
        this.successNum = successNum;
    }
}
